package com.pbc.gmp.model.basemodel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色对象
 * </p>
 *
 * @author kjk
 * @since 2017-12-23
 */
@TableName("t_role")
public class Role implements Serializable,Principal {
	public static final String PRINCIPAL_TYPE="role";
    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;

	/**
	 * 角色名
	 */
	private String name;

	/**
	 * 
	 */
	private String sn;

	/**
	 * 资源类型
	 */
	private String ptype;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getPtype() {
		return ptype;
	}

	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

}
